package sk.naive.talker.command;

/**
 * Thrown if user have no permission for a particular command action.
 *
 * @author <a href="mailto:virgo@naive.deepblue.sk">Richard "Virgo" Richter</a>
 * @version $Revision: 1.1 $ $Date: 2003/12/06 22:48:36 $
 */
public class PermissionException extends CommandException {
	private String permission;

	public PermissionException(String permission) {
		super("Missing permission");
		this.permission = permission;
	}

	public PermissionException(String permission, Throwable cause) {
		super("Missing permission", cause);
		this.permission = permission;
	}

	public String getPermission() {
		return permission;
	}
}
